<extend name="Public/base" />

<block name="body">
	<!-- 标题栏 -->
	<div class="main-title">
		<h2>用户列表</h2>
	</div>
	<style>
		.yj_list {
			width: 25%;
			float: left;
			padding-right: 5%;
		}
		
		.yj_list li a {
			display: block;
			padding: 4px 20px;
			background-color: #fff;
			border-bottom: 1px dashed #459df5;
		}
		
		.data-table {
			width: 70%;
			float: left;
		}
	</style>
	<div class="yj_list">
		<ul>

			<volist name="Department" id="Department">
				<li>
					<a class="v{$Department['id']}" href="{:U('Performance/goal?id='.I('id').'&department_id='.$Department['id'])}">{$Department['title_show']}</a>
				</li>
			</volist>

		</ul>
	</div>

	<script>
		$(function() {
			$(".v{$_GET['department_id']|default=0}").css({
				"background-color": "#459df5",
				"color": "#fff"
			})

		})
	</script>

	<div>
		<button class="btn" id="action_add" url="{:U('add')}">新 增</button>
		<button class="btn ajax-post confirm" target-form="ids" url="{:U('setStatus?Model=Action&status=-1')}">删 除</button>
	</div>
	<!-- 数据列表 -->
	<div class="data-table">
		<table class="">
			<thead>
				<tr>
					<th class="row-selected row-selected"><input class="check-all" type="checkbox" /></th>
					<th class="">姓名</th>
					<th class="">业绩汇总</th>
					<th class="">一月</th>
					<th class="">二月</th>
					<th class="">三月</th>
					<th class="">四月</th>
					<th class="">五月</th>
					<th class="">六月</th>
					<th class="">七月</th>
					<th class="">八月</th>
					<th class="">九月</th>
					<th class="">十月</th>
					<th class="">十一月</th>
					<th class="">十二月</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				<volist name="_list" id="vo">
					<tr>
						<td><input class="ids" type="checkbox" name="ids[]" value="{$vo.uid}" /></td>
						<td>{$vo.nickname} </td>
						<td>{$vo.amount|default=0}</td>
						<volist name="vo.monthly" id="mon">
							<td>{$mon}</td>
						</volist>
						<td>
							<a href="{:U('Performance/editGoal?uid='.$vo['uid'].'&id='.$performance_id)}">查看</a>
						</td>
					</tr>
				</volist>
			</tbody>
		</table>

	</div>
	<!-- 分页 -->
	<div class="page">{$_page}</div>
	<!-- /分页 -->

</block>
<block name="script">
	<script type="text/javascript">
		$(function() {
			$("#action_add").click(function() {
				window.location.href = $(this).attr('url');
			})

		})
	</script>
</block>